import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/hrms/assets/admin/` + url, ...arg)
export default {
	outerPage(data) {
		return request('outerPage', data, 'post')
	},
	pageList(data) {
		return request('pageList', data, 'post')
	},
	insertOrEditWithFile(data) {
		return request('insertOrEditWithFile', data, 'post')
	},
	edit(data) {
		return request('edit', data, 'post')
	},
	del(id) {
		return request(`del/${id}`, null, 'get')
	},
	importExcel(data) {
		return request('importExcel', data, 'post')
	}
}
